const mongoose = require('mongoose')
const Schema = mongoose.Schema
const UserSchema = new Schema({
  userName: {
    type: String,
    required: true
  },
  password: {
    type: String,
    required: true
  },
  type: {
    type: String,
    required: true,
    default: 'boss'
  }
})
mongoose.model('UserSchema', UserSchema)